Optimal. Leaf size=23 \[ \frac{\tanh ^{-1}(\sin (a+b x))}{b}-\frac{\sin (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0147116, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {2592, 321, 206} \[ \frac{\tanh ^{-1}(\sin (a+b x))}{b}-\frac{\sin (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2592
Rule 321
Rule 206
Rubi steps
\begin{align*} \int \sin (a+b x) \tan (a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^2}{1-x^2} \, dx,x,\sin (a+b x)\right )}{b}\\ &=-\frac{\sin (a+b x)}{b}+\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac{\tanh ^{-1}(\sin (a+b x))}{b}-\frac{\sin (a+b x)}{b}\\ \end{align*}
Mathematica [A] time = 0.0107391, size = 23, normalized size = 1. \[ \frac{\tanh ^{-1}(\sin (a+b x))}{b}-\frac{\sin (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.017, size = 31, normalized size = 1.4 \begin{align*} -{\frac{\sin \left ( bx+a \right ) }{b}}+{\frac{\ln \left ( \sec \left ( bx+a \right ) +\tan \left ( bx+a \right ) \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.990652, size = 46, normalized size = 2. \begin{align*} \frac{\log \left (\sin \left (b x + a\right ) + 1\right ) - \log \left (\sin \left (b x + a\right ) - 1\right ) - 2 \, \sin \left (b x + a\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68546, size = 99, normalized size = 4.3 \begin{align*} \frac{\log \left (\sin \left (b x + a\right ) + 1\right ) - \log \left (-\sin \left (b x + a\right ) + 1\right ) - 2 \, \sin \left (b x + a\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24147, size = 49, normalized size = 2.13 \begin{align*} \frac{\log \left ({\left | \sin \left (b x + a\right ) + 1 \right |}\right ) - \log \left ({\left | \sin \left (b x + a\right ) - 1 \right |}\right ) - 2 \, \sin \left (b x + a\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]